package cn.edu.scau.cmi.liujiaming.chapter05;

class Circle{
	double x,y,radius,area;
	Circle(){
		
	}
	Circle(double r){
		radius=r;
	}
	void setX(double a) {
		x=a;
	}
	void setY(double b) {
		y=b;
	}
	void setRadius(double r) {
		if(r>0) {
			radius=r;
		}
	}
	double getRadius() {
		return radius;
	}
	double getX() {
		return x;
	}
	double getY() {
		return y;
	}
	double getArea() {
		area=Math.PI*radius*radius;
		return area;
	}
}